package com.nebrija.riif.model;

import java.util.Calendar;

public enum TimeStrings {
		ms, s, mins, hours, days, months, years;
		
		public static int timeStringsToCalendar(TimeStrings ts){
			int res = 0;
			switch (ts){
				case ms: res = Calendar.MILLISECOND;
						 break;
				case s: res = Calendar.SECOND;
				 break;
				case mins: res = Calendar.MINUTE;
				 break;
				case hours: res = Calendar.HOUR;
				 break;
				case days: res = Calendar.DATE;
				 break;
				case months: res = Calendar.MONTH;
				 break;
				case years: res = Calendar.YEAR;
				 break;
			}
			return res;
				
			
		}
}
